﻿using System.Web;
using Grishko.SerilizeTools;
using Grishko.DataTier.SqlSentence;
using OutdoorLib.BaseEntity.Face;
using OutdoorLib.BaseEntity.Infrastructure;

namespace OutdoorLib.BaseEntity.Filters
{
    /// <summary>
    /// Список сотрудников 
    /// </summary>
    [TagNameInfo(TagName = "ClientListFilter")]
    public class ClientListFilter : Filter
    {

        public class EmplScriptEngine : ScriptEngine
        {
            public EmplScriptEngine(ScriptEngine.TScriptEngineSrchInfo Settings) : base(Settings) { }            

        }

        public override string ObjectPageKey
        {
            get
            {
                return "PageKey_ClientEditor";
            }
        }
                        
        public ClientListFilter()
        {
            ScriptEngine.TScriptEngineSrchInfo Settings = new ScriptEngine.TScriptEngineSrchInfo();
            Settings.EntityType = typeof(Client);
            Settings.SqlFunction = "GetClientObjectPropertyStorage()";
            Where = new EmplScriptEngine(Settings);
        }
    }
}